
moba.id_field = function(idt,id,f)
	if idt == "players" then
		return player(id,f) or moba.player[f][id]
	else
		return moba[idt][id][f]
	end
end

moba.id_config = function(idt,id)
	return moba.config[idt][moba.id_field(idt,id,"type")]
end

moba.id_exists = function(idt,id)
	if idt == "players" then
		return player(id,"exists")
	else
		return moba[idt][id]
	end
end